function MoleC = MassF2MoleC(Gdata)
% Convert mass fraction to mole concentration
y_SiH4 = Gdata.y_SiH4;
density = Gdata.density;
mw_SiH4 = 32.11788;
mw_H2 = 2.01594;
mw_Si = 28.086;

y_H2 = 1-y_SiH4;
n_SiH4 = y_SiH4./mw_SiH4;
n_H2 = y_H2./mw_H2;
x_SiH4 = n_SiH4./(n_SiH4+n_H2);
x_H2 = n_H2./(n_SiH4+n_H2);
mw_mixture = x_SiH4.*mw_SiH4+x_H2.*mw_H2;
MoleC = density.*x_SiH4./(mw_mixture);